<?php
namespace App\Traits;

use App\Models\FakeList;

Trait Trait12_14 {

    public function roomStatistics()
    {
        $data1 = FakeList::whereIn('id', [46, 47, 48])->select(['name', 'extra_data', 'status'])->get();
        $data2 = FakeList::whereIn('id', [49, 50, 51])->select(['message', 'name'])->get();
        $data = [
            'status' => $data1,
            'lists' => $data2
        ];
        $responseJson = [
            'code' => 200,
            'message' => '',
            'data' => $data
        ];
        return response()->json($responseJson);
    }

}
